package com.anti.modular.bus.houseleaselive.service;

import com.anti.jdbc.support.page.PageParam;
import com.anti.jdbc.support.page.PageResult;
import com.anti.modular.bus.houseleaselive.entity.HouseLeaseLive;
import com.anti.modular.bus.houseleaselive.param.HouseLeaseLiveParam;
import com.anti.modular.bus.houseleaselive.result.HouseLeaseLiveResult;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * 房间租约同住人service接口
 *
 * @author anti
 * @date 2021-05-06 12:22:22
 */
public interface HouseLeaseLiveService{

    /**
    * 根据主键查询实体
    */
    HouseLeaseLive getById(HouseLeaseLiveParam houseLeaseLiveParam);

    /**
     * 查询房间租约同住人
     *
     * @author anti
     * @date 2021-05-06 12:22:22
     */
    PageResult page(PageParam pageParam,HouseLeaseLiveParam houseLeaseLiveParam);

    /**
     * 房间租约同住人列表
     *
     * @author anti
     * @date 2021-05-06 12:22:22
     */
    List<HouseLeaseLive> list(HouseLeaseLiveParam houseLeaseLiveParam);

    List<HouseLeaseLive> listByLeaseId(Long leaseId);

    /**
     * 添加房间租约同住人
     *
     * @author anti
     * @date 2021-05-06 12:22:22
     */
    void add(HouseLeaseLiveParam houseLeaseLiveParam);

    void add(HouseLeaseLive houseLeaseLive);


    /**
     * 删除房间租约同住人
     *
     * @author anti
     * @date 2021-05-06 12:22:22
     */
    void delete(HouseLeaseLiveParam houseLeaseLiveParam);
    void deleteByLeaseId(Long id);

    /**
     * 编辑房间租约同住人
     *
     * @author anti
     * @date 2021-05-06 12:22:22
     */
    void edit(HouseLeaseLiveParam houseLeaseLiveParam);

    /**
     * 查看房间租约同住人
     *
     * @author anti
     * @date 2021-05-06 12:22:22
     */
     HouseLeaseLive detail(HouseLeaseLiveParam houseLeaseLiveParam);

     List<HouseLeaseLiveResult> getTzrListByLeaseId(Long leaseId);

}
